/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.test.porleta.model;

import com.liferay.portal.kernel.annotation.AutoEscape;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;

/**
 * The base model interface for the Foo service. Represents a row in the &quot;pa_Foo&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.test.porleta.model.impl.FooModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.test.porleta.model.impl.FooImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this interface directly. All methods that expect a foo model instance should use the {@link Foo} interface instead.
 * </p>
 *
 * @author nicolai
 * @see Foo
 * @see com.test.porleta.model.impl.FooImpl
 * @see com.test.porleta.model.impl.FooModelImpl
 * @generated
 */
public interface FooModel extends BaseModel<Foo> {
	/**
	 * Gets the primary key of this foo.
	 *
	 * @return the primary key of this foo
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this foo
	 *
	 * @param pk the primary key of this foo
	 */
	public void setPrimaryKey(long pk);

	/**
	 * Gets the foo id of this foo.
	 *
	 * @return the foo id of this foo
	 */
	public long getFooId();

	/**
	 * Sets the foo id of this foo.
	 *
	 * @param fooId the foo id of this foo
	 */
	public void setFooId(long fooId);

	/**
	 * Gets the company id of this foo.
	 *
	 * @return the company id of this foo
	 */
	public long getCompanyId();

	/**
	 * Sets the company id of this foo.
	 *
	 * @param companyId the company id of this foo
	 */
	public void setCompanyId(long companyId);

	/**
	 * Gets the user id of this foo.
	 *
	 * @return the user id of this foo
	 */
	public long getUserId();

	/**
	 * Sets the user id of this foo.
	 *
	 * @param userId the user id of this foo
	 */
	public void setUserId(long userId);

	/**
	 * Gets the user uuid of this foo.
	 *
	 * @return the user uuid of this foo
	 * @throws SystemException if a system exception occurred
	 */
	public String getUserUuid() throws SystemException;

	/**
	 * Sets the user uuid of this foo.
	 *
	 * @param userUuid the user uuid of this foo
	 */
	public void setUserUuid(String userUuid);

	/**
	 * Gets the user name of this foo.
	 *
	 * @return the user name of this foo
	 */
	@AutoEscape
	public String getUserName();

	/**
	 * Sets the user name of this foo.
	 *
	 * @param userName the user name of this foo
	 */
	public void setUserName(String userName);

	/**
	 * Gets the create date of this foo.
	 *
	 * @return the create date of this foo
	 */
	public Date getCreateDate();

	/**
	 * Sets the create date of this foo.
	 *
	 * @param createDate the create date of this foo
	 */
	public void setCreateDate(Date createDate);

	/**
	 * Gets the modified date of this foo.
	 *
	 * @return the modified date of this foo
	 */
	public Date getModifiedDate();

	/**
	 * Sets the modified date of this foo.
	 *
	 * @param modifiedDate the modified date of this foo
	 */
	public void setModifiedDate(Date modifiedDate);

	/**
	 * Gets the field1 of this foo.
	 *
	 * @return the field1 of this foo
	 */
	@AutoEscape
	public String getField1();

	/**
	 * Sets the field1 of this foo.
	 *
	 * @param field1 the field1 of this foo
	 */
	public void setField1(String field1);

	/**
	 * Gets the field2 of this foo.
	 *
	 * @return the field2 of this foo
	 */
	public boolean getField2();

	/**
	 * Determines if this foo is field2.
	 *
	 * @return <code>true</code> if this foo is field2; <code>false</code> otherwise
	 */
	public boolean isField2();

	/**
	 * Sets whether this {$entity.humanName} is field2.
	 *
	 * @param field2 the field2 of this foo
	 */
	public void setField2(boolean field2);

	/**
	 * Gets the field3 of this foo.
	 *
	 * @return the field3 of this foo
	 */
	public int getField3();

	/**
	 * Sets the field3 of this foo.
	 *
	 * @param field3 the field3 of this foo
	 */
	public void setField3(int field3);

	/**
	 * Gets the field4 of this foo.
	 *
	 * @return the field4 of this foo
	 */
	public Date getField4();

	/**
	 * Sets the field4 of this foo.
	 *
	 * @param field4 the field4 of this foo
	 */
	public void setField4(Date field4);

	/**
	 * Gets the field5 of this foo.
	 *
	 * @return the field5 of this foo
	 */
	@AutoEscape
	public String getField5();

	/**
	 * Sets the field5 of this foo.
	 *
	 * @param field5 the field5 of this foo
	 */
	public void setField5(String field5);

	/**
	 * Gets a copy of this foo as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
	 *
	 * @return the escaped model instance
	 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
	 */
	public Foo toEscapedModel();

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public void setEscapedModel(boolean escapedModel);

	public Serializable getPrimaryKeyObj();

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(Foo foo);

	public int hashCode();

	public String toString();

	public String toXmlString();
}